package team.star.werespos.model.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * NewPwdVO class<br/>
 *
 * @author hdonghong
 * @since 2019/05/15
 */
@Data
public class NewPwdVO implements Serializable {

    private static final long serialVersionUID = -6902582702205291121L;

    @NotEmpty
    @Length(min = 1, max = 16, message = "长度范围必须大于1小于16")
    private String oldPwd;

    @NotEmpty
    @Length(min = 1, max = 16, message = "长度范围必须大于1小于16")
    private String newPwd;
}
